<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:rich="http://richfaces.org/rich"
	xmlns:a4j="http://richfaces.org/a4j">

<ui:composition>
	<h:form>
		<rich:panelMenu mode="server" topGroupExpandedRightIcon="chevronUp"
			topGroupCollapsedRightIcon="chevronDown" groupExpandedLeftIcon="disc"
			groupCollapsedLeftIcon="disc">
			<rich:panelMenuGroup label="Programowanie">
				<rich:panelMenuItem label="Java" actionListener="#{bookMenuBean.changeSection}" action="#{jsfutils.redirect('mainContent/booksTablePage')}" >
				<f:param name="section" value="Java"/></rich:panelMenuItem>
				<rich:panelMenuItem label="C/C++" actionListener="#{bookMenuBean.changeSection}" action="#{jsfutils.redirect('mainContent/booksTablePage')}">
				<f:param name="section" value="C/C++"/></rich:panelMenuItem>
				<rich:panelMenuItem label=".NET" actionListener="#{bookMenuBean.changeSection}" action="#{contentPanelBean.setStatus('booksTable')}" render="bookTable">
				<f:param name="section" value=".NET"/></rich:panelMenuItem>
			</rich:panelMenuGroup>
			<rich:panelMenuGroup label="Systemy operacyjne">
				<rich:panelMenuGroup label="Windows">
					<rich:panelMenuItem label="Windows 7"  actionListener="#{bookMenuBean.changeSection}" action="#{jsfutils.redirect('mainContent/booksTablePage')}">
					<f:param name="section" value="Windows 7"/></rich:panelMenuItem>
					<rich:panelMenuItem label="Windows Vista" actionListener="#{bookMenuBean.changeSection}" action="#{jsfutils.redirect('mainContent/booksTablePage')}" render="bookTable">
					<f:param name="section" value="Windows Vista"/></rich:panelMenuItem>
					<rich:panelMenuItem label="Windows XP" actionListener="#{bookMenuBean.changeSection}" render="bookTable">
					<f:param name="section" value="Windows XP"/></rich:panelMenuItem>
				</rich:panelMenuGroup>
				<rich:panelMenuItem label="Unix" actionListener="#{bookMenuBean.changeSection}" render="bookTable">
				<f:param name="section" value="Unix"/></rich:panelMenuItem>
				<rich:panelMenuItem label="MacOS" actionListener="#{bookMenuBean.changeSection}" render="bookTable">
				<f:param name="section" value="MacOS"/></rich:panelMenuItem>
			</rich:panelMenuGroup>
			<rich:panelMenuGroup label="Bazy danych">
				<rich:panelMenuItem label="MS SQL" actionListener="#{bookMenuBean.changeSection}" render="bookTable">
				<f:param name="section" value="MS SQL"/></rich:panelMenuItem>
				<rich:panelMenuItem label="Oracle" actionListener="#{bookMenuBean.changeSection}" render="bookTable">
				<f:param name="section" value="Oracle"/></rich:panelMenuItem>
			</rich:panelMenuGroup>
		</rich:panelMenu>
	</h:form>

</ui:composition>
</html>